﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.SqlSugar.Trigger
{
    public abstract class BaseTriggerService<InEntity, TKey> : ITriggerService<InEntity, TKey> where InEntity : BaseEntity<InEntity, TKey>, new()
    {
        public ISqlSugarClient Context;

        public virtual void Inserted(InEntity entity)
        {

        }

        public virtual void InsertedRange(List<InEntity> entity)
        {

        }

        public virtual void Updated(InEntity entity)
        {

        }

        public virtual void UpdatedRange(List<InEntity> entity)
        {

        }

        public virtual void Deleted(InEntity entity)
        {

        }

        public virtual void DeletedRange(List<InEntity> entity)
        {

        }


    }
}
